import request from '../../utils/request';

export const recordList = query => {
    return request({
        url: '/api/version/record/doMain',
        method: 'post',
        // url: './json/recordlist.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/version/record/doAdd',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
//删除医院
export const doDelete = query => {
    return request({
        url: '/api/version/record/doDelete',
        method:'delete',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};

//修改编辑
export const doUpdate = query => {
    return request({
        url: '/api/version/record/doUpdate',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//获取医院信息
export const selectAllHospital = query => {
    return request({
        url: '/api/version/hospital/doMain',
        method:'post',
        // url:'./json/hospitallist.json',
        // method: 'get',
        params: query
    });
};
//查询项目信息
export const selectAllProject = query => {
    return request({
        url: '/api/version/project/doMain',
        method:'post',
        // url:'./json/projectlist.json',
        // method: 'get',
        params: query
    });
};
//根据项目ID查询版本号
export const selectVersionById = query => {
    return request({
        url: '/api/version/server/selectByProjectId',
        method:'post',
        // url:'./json/versions.json',
        // method: 'get',
        params: query
    });
};
//根据记录ID和项目ID查询记录信息
export const selectById = query => {
    return request({
        url: '/api/version/record/doView',
        method:'post',
        // url:'./json/recordone.json',
        // method: 'get',
        params: query
    });
};



